﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Bullet : MonoBehaviour
{
	protected Role shooter;
	protected Collider2D bullet;

	protected int attack;
	public int Attack => attack;    // 攻击力

	/// <summary>
	/// 子弹初始化
	/// </summary>
	/// <param name="shooter"></param>
	public virtual void SetIniAttributes(Role shooter) {
		this.attack = shooter.Attack;

	}

	public virtual void OnDestroyBullet() {
		Destroy(this.gameObject);
	}
}
